<?php

use common\widgets\DetailView;
use common\widgets\Box;
?>

<div class="col-md-12">

    <?php
    Box::begin([
        'title' => '查看管理员详细信息',
    ]);
    echo DetailView::widget([
        'model' => $model,
        'attributes' => [
            'adminName',
            'realName',
            [
                'label' => '管理员组',
                'value' => $model->adminRole->roleName,
            ],
            'phone',
            'email:email',
            [
                'label' => '状态',
                'value' => $model->genStatusText(),
            ],
            'lastLoginTime:datetime',
            'lastLoginIP',
            'createTime:datetime',
        ],
    ]);
    Box::end();
    ?>
</div>